#ifndef WLTERM_SESSION_H
#define WLTERM_SESSION_H

#define SCREEN_ROWS	24
#define SCREEN_COLS	80

#define BUF_LEN		2048
#define ESC_CTL_BUF	33
#define ENCODING_LEN	20
#define CON_CMD_LEN		100

#define TELNET_CMD	"telnet"
#define SSH_CMD	"ssh"

#include "wlterm_site.h"
#include "wlterm_data.h"

typedef struct _WltermSession{
	WltermData **screen;
	gint x;
	gint y;
	gchar ctrl_buf[ESC_CTL_BUF];
	gchar *p_ctrl_buf; /* point to current ctl_buf */
	WltermSite *site;
} WltermSession;

WltermSession * wlterm_session_create(WltermSite *site);
void wlterm_session_destroy(WltermSession * thiz);
void wlterm_session_connect(WltermSession *thiz);
#endif /* WLTERM_SESSION_H */
